package com.dodo.baseproject.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;

@RestController
public class RouteController {
    private static Logger logger = LoggerFactory.getLogger(RouteController.class);
    @GetMapping(value="/index")
    public ModelAndView index(){
        logger.debug("1231");
        return new ModelAndView("index");
    }
    @GetMapping(value="/login")
    public ModelAndView login(){
        logger.warn("login");
        return new ModelAndView("webpages/login");
    }
    @GetMapping(value="/main")
    public ModelAndView main(){
        logger.info("main");
        return new ModelAndView("webpages/main");
    }
}
